package com.dlc.felear.xiaoensale.entity;

import java.util.List;

public class ShopCarInfo {

    /**
     * data : [{"unit":1,"goodsId":"156f937ad0dd438fabe625945e3ed5f4","price":0.2,"num":1,"name":"砝码200g","pic":"../static/img/webuploader.png","status":0}]
     * options : 2
     */

    private int options;
    private List<GoogsInfo> data;

    public int getOptions() {
        return options;
    }

    public void setOptions(int options) {
        this.options = options;
    }

    public List<GoogsInfo> getData() {
        return data;
    }

    public void setData(List<GoogsInfo> data) {
        this.data = data;
    }

    public static class GoogsInfo {
        /**
         * unit : 1
         * goodsId : 156f937ad0dd438fabe625945e3ed5f4
         * price : 0.2
         * num : 1
         * name : 砝码200g
         * pic : ../static/img/webuploader.png
         * status : 0
         */

        private int unit;
        private String goodsId;
        private double price;
        private int num;
        private String name;
        private String pic;
        private int status;
        private int quantity;
        private int scaleNumber;
        private int weight;
        private int action;

        public GoogsInfo() {
        }

        public GoogsInfo(int scaleNumber,String goodsId,int action ,int quantity,  int weight ) {
            this.goodsId = goodsId;
            this.quantity = quantity;
            this.scaleNumber = scaleNumber;
            this.weight = weight;
            this.action = action;
        }

        public int getAction() {
            return action;
        }

        public void setAction(int action) {
            this.action = action;
        }

        public int getScaleNumber() {
            return scaleNumber;
        }

        public void setScaleNumber(int scaleNumber) {
            this.scaleNumber = scaleNumber;
        }


        public int getWeight() {
            return weight;
        }

        public void setWeight(int weight) {
            this.weight = weight;
        }

        public int getQuantity() {
            return quantity;
        }

        public void setQuantity(int quantity) {
            this.quantity = quantity;
        }

        public int getUnit() {
            return unit;
        }

        public void setUnit(int unit) {
            this.unit = unit;
        }

        public String getGoodsId() {
            return goodsId;
        }

        public void setGoodsId(String goodsId) {
            this.goodsId = goodsId;
        }

        public double getPrice() {
            return price;
        }

        public void setPrice(double price) {
            this.price = price;
        }

        public int getNum() {
            return num;
        }

        public void setNum(int num) {
            this.num = num;
        }

        public String getName() {
            return name;
        }

        public void setName(String name) {
            this.name = name;
        }

        public String getPic() {
            return pic;
        }

        public void setPic(String pic) {
            this.pic = pic;
        }

        public int getStatus() {
            return status;
        }

        public void setStatus(int status) {
            this.status = status;
        }
    }
}
